package com.campus.commons.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 问题表
 * </p>
 *
 * @author Rin
 * @since 2020-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Question对象", description="问题表")
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户Id（提问题的人")
    @TableField("userId")
    private Integer userid;

    @ApiModelProperty(value = "问题标题")
    private String title;

    @ApiModelProperty(value = "问题内容")
    private String content;

    @ApiModelProperty(value = "图片地址")
    private String images;

    @ApiModelProperty(value = "问题发布的时间")
    @TableField("createDate")
    private Date createdate;

    @ApiModelProperty(value = "阅读量")
    @TableField("lookAmount")
    private Integer lookamount;

    @ApiModelProperty(value = "问题的状态： 1.未解决  2.已解决")
    private Integer state;


}
